import request from '@/utils/request'

// 获取评审列表数据
export function getPriceList(query) {
  return request({
    url: '/lims/price/list',
    method: 'get',
    params: query
  })
}

// 获取点位列表接口
export function getPointList(query) {
  return request({
    url: '/lims/contract/point/list',
    method: 'get',
    params: query
  })
}

// 获取方案表单数据
export function postPriceInformation(data) {
  return request({
    url: '/lims/price',
    method: 'post',
    data: data
  })
}

// 获取评审列表数据
export function getPriceForm(priceId) {
  return request({
    url: '/lims/price/' + priceId,
    method: 'get',
  })
}

// 删除左侧交接列表
export function delPrice(priceIds) {
  return request({
    url: '/lims/price/delete/' + priceIds,
    method: 'delete',
  })
}

// /lims/price/copy/{priceId} 引用接口 post提交
export function priceCopy(priceId) {
  return request({
    url: '/lims/price/copy/' + priceId,
    method: 'post',
  })
}

// 粘贴客户信息点位
export function pasteCustomPoint(priceId) {
  return request({
    url: '/lims/price/paste/cumstom/' + priceId,
    method: 'post'
  })
}

// 更新客户信息点位
export function RenewCustomPoint(priceId) {
  return request({
    url: '/lims/price/paste/price/' + priceId,
    method: 'post'
  })
}

// 同步委托客户信息
export function postWtCustom(query) {
  return request({
    url: '/lims/price/syn/wtCustom',
    method: 'post',
    params: query
  })
}

// 同步受检客户信息
export function postSjCustom(query) {
  return request({
    url: '/lims/price/syn/sjCustom',
    method: 'post',
    params: query
  })
}

// 点击报价计算
export function postCalculation(priceId) {
  return request({
    url: '/lims/priceData/'+priceId,
    method: 'post',
  })
}

// 点击报价计算
export function getContentList(query) {
  return request({
    url: '/lims/priceData/list',
    method: 'get',
    params: query
  })
}

// 查询其它费用列表
export function getOtherList(query) {
  return request({
    url: '/lims/priceData/other/list',
    method: 'get',
    params: query
  })
}

// 点击计算
export function postPriceData(data) {
  return request({
    url: '/lims/priceData/calculate',
    method: 'post',
    data: data
  })
}

// 点击计算
export function getDiscountFrom(priceId) {
  return request({
    url: '/lims/priceData/total/' + priceId,
    method: 'get',
  })
}

// 更改备注实时保存
export function putPriceData(data) {
  return request({
    url: '/lims/priceData',
    method: 'put',
    data: data
  })
}